package com.group.app.example.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;

@ContentRowHeight(16)
@HeadRowHeight(16)
@ColumnWidth(16)
@Data
public class FieldWarehouseVo {

    @ExcelProperty(value = "第一层级",index = 1)
    @NotNull(message="第一层级不能为空")
    @JsonProperty(value = "第一层级")
    private String first;

    @ExcelProperty(value = "第二层级",index = 2)
    @JsonProperty(value = "第二层级")
    private String second;

    @ExcelProperty(value ="第三层级",index = 3)
    @JsonProperty(value = "第三层级")
    private String third;

    @ExcelIgnore
    @JsonProperty(value = "编号")
    private String id;

    @ExcelProperty(value ="字段名称",index = 4)
    @JsonProperty(value = "字段名称")
    private String fieldName;

    @ExcelProperty(value ="字段类别",index = 5)
    @JsonProperty(value = "字段类别")
    private String fieldType;

}
